//
//  BBRadialControlView.h
//  xNose
//
//  Created by ben smith on 9/10/08.
//  Copyright 2008 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>

@class BBNodeView;

@interface BBRadialControlView : NSView {
	BBNodeView* delegate;
	float profitRadius;
	float incomeRadius;
	float costRadius;
	float costStartOffset;
	float incomeStartOffset;
	BOOL costStartAdjust;
	BOOL costEndAdjust;
	BOOL incomeStartAdjust;
	BOOL incomeEndAdjust;
	NSPoint costStart;
	NSPoint costEnd;
	NSPoint incomeStart;
	NSPoint incomeEnd;
	NSPoint mouseDown;
}

@property (retain) BBNodeView* delegate;


- (NSPoint)pointForAngle:(float)angle radius:(float)radius around:(NSPoint)center;
- (NSRect)controlRectAtPoint:(NSPoint)p;
- (float)angleOfPoint:(NSPoint)p around:(NSPoint)center;
- (id)initWithFrame:(NSRect)frame ;
- (void) dealloc;
- (void)drawControlAtPoint:(NSPoint)p;
- (void)drawRect:(NSRect)rect ;
- (void)drawRingWithStart:(float)startAngle end:(float)endAngle radius:(float)radius color:(NSColor*)color;
- (void)mouseDown:(NSEvent*)theEvent;
- (void)mouseDragged:(NSEvent*)theEvent;
- (void)mouseUp:(NSEvent*)theEvent;
- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context;
- (void)setDelegate:(BBNodeView*)d;
- (void)setPoints;
- (void)setRadius;

// 15 methods


@end
